#include"stack.h"
void Stack::Int()
{
	_p = (int*)malloc(sizeof(int) * 4);
	if (_p == nullptr)
	{
		perror("malloc fail");
		return ;
	}
	_n = 0;
	_capacity = 4;
}

void Stack::Push(int n)
{
	_p[_n] = n;
	_n++;
}

